<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript">


	var fragmentUrl = 'behandelingen/facials/for-men';
	var routers = [ 'arrangementen/*deeplink', 'behandelingen',
			'behandelingen/*deeplink', 'behandelingen/scrub/*deeplink',
			'behandelingen/facials/', 'behandelingen/facials/*deeplink',
			'behandelingen/facials/:param', 'behandelingen/:param/for-men' ];

	function matchFragments(uriFragment, routerFragment) {
		var namedParam = /:([\w\d]+)/g;
		var splatParam = /\*([\w\d]+)/g;
		var escapeRegExp = /[-[\]{}()+?.,\\^$|#\s]/g;

		var route = routerFragment.replace(escapeRegExp, "\\$&").replace(
				namedParam, "([^\/]*)").replace(splatParam, "(.*?)");
		var routeRegexp = new RegExp('^' + route + '$');

		return routeRegexp.test(uriFragment);
	}

	for (r in routers) {
		var route = routers[r];
		var match = matchFragments(fragmentUrl, route);
		if (match) {
			console.log('match: ' + route);
		} else {
			console.warn('no match: ' + route);
		}
	}
</script>

</head>
<body>
check console 
</body>
</html>